<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

    <title>订单管理</title>

    <link href="/static/yonghu/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
    <link href="https://cdn.bootcss.com/amazeui/2.5.1/css/amazeui.css" rel="stylesheet" type="text/css" />

    <link href="/static/yonghu/css/personal.css" rel="stylesheet" type="text/css">
    <link href="/static/yonghu/css/orstyle.css" rel="stylesheet" type="text/css">

    <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script src="https://cdn.bootcss.com/amazeui/2.5.1/js/amazeui.min.js"></script>
</head>

<body>
<!--头 -->
<header>
    <article>
        <div class="mt-logo">
            <!--顶部导航条 -->
            <!--悬浮搜索框-->
            <div class="clear"></div>
        </div>
        </div>
    </article>
</header>
<div class="nav-table">
    <div class="long-title"><span class="all-goods">个人中心</span></div>

</div>
<b class="line"></b>
<div class="center">
    <div class="col-main">
        <div class="main-wrap">

            <div class="user-order">

                <!--标题 -->
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
                </div>
                <hr/>

                <div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

                    <ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
                        <li class="am-active"><a href="#tab1">所有订单</a></li>

                    </ul>

                    <div class="am-tabs-bd" >
                        <div class="am-tab-panel am-fade am-in am-active" id="tab1">
                            <div class="order-top">
                                <div class="th th-item">
                                    <td class="td-inner">课程名</td>
                                </div>
                                <div class="th th-price">
                                    <td class="td-inner">价格</td>
                                </div>
<!--                                <div class="th th-number">-->
<!--                                    <td class="td-inner">总价格</td>-->
<!--                                </div>-->
<!--                                <div class="th th-operation">-->
<!--                                    <td class="td-inner">商品操作</td>-->
<!--                                </div>-->
                                <div class="th th-amount">
                                    <td class="td-inner">合计</td>
                                </div>
<!--                                <div class="th th-status">-->
<!--                                    <td class="td-inner">交易状态</td>-->
<!--                                </div>-->
                                <div class="th th-change">
                                    <td class="td-inner">交易状态</td>
                                </div>
                            </div>

                            <div class="order-main" th:each="Orderlist : ${Orderlist}">
                                <div class="order-list">

                                    <!--交易成功-->
                                    <div class="order-status5">
                                        <div class="order-title">
                                            <div class="dd-num">订单编号：<a href="javascript:;" th:text="${Orderlist.orderId}">1601430</a></div>
                                           <div>成交时间: <span th:text="${Orderlist.orderPayTime}"></span></div>
                                            <!--    <em>店铺：小桔灯</em>-->
                                        </div>
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-item">
                                                        <div class="item-pic">
                                                            <a href="#" class="J_MakePoint">
                                                                <img th:text="${Orderlist.course.coursePic}" class="itempic J_ItemImg">
                                                            </a>
                                                        </div>
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <a href="#">
                                                                    <p th:text="${Orderlist.course.courseName}">111</p>
<!--                                                                    <p class="info-little">颜色：12#川南玛瑙-->
<!--                                                                        <br/>包装：裸装 </p>-->
                                                                </a>
                                                            </div>
                                                        </div>
                                                    </li>
                                                    <li class="td td-price">
                                                        <div class="item-price" th:text="${Orderlist.course.coursePrice}">
                                                            333.00
                                                        </div>
                                                    </li>
<!--                                                    <li class="td td-number">-->
<!--                                                        <div class="item-number">-->
<!--                                                            <span th:text="${Orderlist.orderTotal}"></span>-->
<!--                                                        </div>-->
<!--                                                    </li>-->
                                                    <li class="td td-operation">
                                                        <div class="item-operation">

                                                        </div>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                   <div th:switch="${Orderlist.orderState}">
                                                         <span th:case="0">未付</span>
                                                         <span th:case="1">已付</span>
                                                         <span th:case="-1">已失效</span>
                                                    </div>
                                                </li>
                                                <div class="move-right">
<!--                                                    <li class="td td-status">-->
<!--                                                        <div class="item-status">-->
<!--                                                            <p class="Mystatus">交易成功</p>-->
<!--                                                            <p class="order-info"><a href="orderinfo.html">订单详情</a></p>-->
<!--                                                            <p class="order-info"><a href="logistics.html">查看物流</a></p>-->
<!--                                                        </div>-->
<!--                                                    </li>-->
<!--                                                    <li class="td td-change">-->
<!--                                                        <div class="am-btn am-btn-danger anniu">-->
<!--                                                            <a th:href="@{/del(orderId=${orderId})}" >删除订单</a></div>-->
<!--                                                    </li>-->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <!--底部-->

    </div>
    <aside class="menu">
        <ul>
            <li class="person">
                <a href="#">个人中心</a>
            </li>
            <li class="person">
                <ul>
                    <li> <a href="/user/toInformation">个人信息</a></li>

                </ul>
            </li>
            <li class="person">
                <ul>
                    <li class="active"><a href="/order/toOrder">我的订单</a></li>

                </ul>
            </li>


            <li class="person">
                <ul>
                    <li><a href="/study/toStudy">课程</a></li>
                    <li> <a href="/like/toCollect">收藏</a></li>

                </ul>
            </li>

        </ul>

    </aside>
</div>

</body>

</html>